﻿using System.Collections.Generic;
using System.Security.Principal;

namespace SharePoint.UserAccountControl
{
    /// <summary>
    /// A domain class that represents information about a user.
    /// </summary>
    public class UserInfo
    {
        /// <summary>
        /// Gets or sets the username.
        /// </summary>
        /// <value>The username.</value>
        public string UserName { get; set; }

        /// <summary>
        /// Gets or sets the sid.
        /// </summary>
        /// <value>The sid.</value>
        public SecurityIdentifier Sid { get; set; }

        /// <summary>
        /// Gets or sets the group sids.
        /// </summary>
        /// <value>The group sids.</value>
        public List<SecurityIdentifier> GroupSids { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the user is a group.
        /// </summary>
        /// <value><c>true</c> if the user is a group; otherwise, <c>false</c>.</value>
        public bool IsGroup { get; set; }
     }
}
